import request from "@/utils/request";
import { Resource } from "@/utils/resource";
import type { Tarot } from "@/utils/result";

export class RecommendRequest {
  date: string;
  temperature: string;
  humidity: string;
  windSpeed: string;

  constructor(
    date: string,
    temperature: string,
    humidity: string,
    windSpeed: string,
  ) {
    this.date = date;
    this.temperature = temperature;
    this.humidity = humidity;
    this.windSpeed = windSpeed;
  }
}

export const Recommend: any = (params: RecommendRequest) => {
  return request.post<Tarot.ResultResponse>(Resource.GUIDE_RECOMMEND, params);
};
